package com.lelouch.wetlandsystem.mongorepository.repository;

import com.lelouch.wetlandcommon.domain.WetlandBasicEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WetlandBasicEntityRepository extends MongoRepository<WetlandBasicEntity, String> {


    List<WetlandBasicEntity> findByIdIn(List<String> wetlandIds);

    boolean existsByNameEquals(String wetlandName);

    WetlandBasicEntity findByName(String wetlandName);

    Page<WetlandBasicEntity> findAll(Pageable pageable);
}
